<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="companyList.title"/></title>
<content tag="heading"><fmt:message key="companyList.heading"/></content>
<meta name="menu" content="CompanyMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editCompany.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<html:rewrite forward="mainMenu"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="companyList" cellspacing="0" cellpadding="0"
    id="companyList" pagesize="25" class="table companyList"
    export="true" requestURI="">

    <display:column property="id" sortable="true" headerClass="sortable"
        url="/editCompany.html" paramId="id" paramProperty="id"
        titleKey="companyForm.id"/>
    <display:column property="companyId" sortable="true" headerClass="sortable"
         titleKey="companyForm.companyId"/>
    <display:column property="companyName" sortable="true" headerClass="sortable"
         titleKey="companyForm.companyName"/>
    <display:column property="description" sortable="true" headerClass="sortable"
         titleKey="companyForm.description"/>
    <display:column property="companyEngName" sortable="true" headerClass="sortable"
         titleKey="companyForm.companyEngName"/>
    <display:column property="abbreviation" sortable="true" headerClass="sortable"
         titleKey="companyForm.abbreviation"/>
    <display:column property="address" sortable="true" headerClass="sortable"
         titleKey="companyForm.address"/>
    <display:column property="engAddress" sortable="true" headerClass="sortable"
         titleKey="companyForm.engAddress"/>
    <display:column property="email" sortable="true" headerClass="sortable"
         titleKey="companyForm.email"/>
    <display:column property="companyNo" sortable="true" headerClass="sortable"
         titleKey="companyForm.companyNo"/>
    <display:column property="tel" sortable="true" headerClass="sortable"
         titleKey="companyForm.tel"/>
    <display:column property="fax" sortable="true" headerClass="sortable"
         titleKey="companyForm.fax"/>
    <display:setProperty name="paging.banner.item_name"><fmt:message key="companyList.title"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"<fmt:message key="companyList.title"/></display:setProperty>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("companyList");
</script>
